Class symantec.itools.db.beans.binding.DataSynchronizer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.binding.DataSynchronizer

Object
   |
   +----symantec.itools.db.beans.binding.DataSynchronizer

public class DataSynchronizer
extends Object
implements Serializable
This class keeps multiple Data Items on the Data Bus in sync.

Version:
1.0 08/19/98

Constructor Index

 o symantec.itools.db.beans.binding.DataSynchronizer(String, String)
Constructor.

Method Index

 o getSourceDataItem()
Gets the name of source data item.
 o getSourceValue()
Gets the value of source data item.
 o getTargetDataItem()
Gets the name of target data item.
 o getTargetValue()
Gets the value of target data item.
 o setSourceDataItem(String)
Sets the name of source data item, and registers as a listener to this data item.
 o setSourceValue(Object)
Sets the value of source data item.
 o setTargetDataItem(String)
Sets the name of target data item, and registers as a listener to this data item.
 o setTargetValue(Object)
Sets the value of target data item.

Constructors

 o DataSynchronizer
public DataSynchronizer(String sourceDataItemName,
                        String targetDataItemName)
Constructor. Any changes to the source data item in the Data Bus will be replicated to the target data item. The names of data item should conform to the naming convention of Data Bus, e.g. "QNAlias@col1", "SPAlias@parm2".

Parameters:
sourceDataItemName - Name of source data item
targetDataItemName - Name of target data item

Methods

 o getSourceDataItem
public java.lang.String getSourceDataItem()
Gets the name of source data item.

Returns:
Name of source data item
 o getSourceValue
public synchronized java.lang.Object getSourceValue()
Gets the value of source data item.

Returns:
Value of source data item as Object
 o getTargetDataItem
public java.lang.String getTargetDataItem()
Gets the name of target data item.

Returns:
Name of target data item
 o getTargetValue
public synchronized java.lang.Object getTargetValue()
Gets the value of target data item.

Returns:
Value of target data item as Object
 o setSourceDataItem
public void setSourceDataItem(String dataItemName)
Sets the name of source data item, and registers as a listener to this data item.

Parameters:
dataItemName - Name of source data item
 o setSourceValue
public synchronized void setSourceValue(Object value)
Sets the value of source data item.

Parameters:
value - of source data item as Object
 o setTargetDataItem
public void setTargetDataItem(String dataItemName)
Sets the name of target data item, and registers as a listener to this data item.

Parameters:
dataItemName - Name of target data item
 o setTargetValue
public synchronized void setTargetValue(Object value)
Sets the value of target data item.

Parameters:
value - of target data item as Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index